<table class="table table-striped">
    <thead>
    <tr>
        <td></td>
        <th>预约产品</th>
        <th>用户</th>
        <th>消费共享豆</th>
        <th>创建时间</th>
        <th>当前状态</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>预约信息：</td>
        <td>{$info.title}</td>
        <td>{$info.uid|get_uname}</td>
        <td>
            {if condition="$info['isadd'] eq 1"}+{/if}
            {if condition="$info['isadd'] eq 2"}-{/if}
            {$info.delpoint|intval}
        </td>
        <td>
            {$info.ctime|date='Y-m-d H:i:s',###}
        </td>
        <td>
            {if condition="$info['status'] eq 0" }未处理{/if}
            {if condition="$info['status'] eq 1" }已扣除{/if}
            {if condition="$info['status'] eq 2" }<span style='color:#999'>已返还</span>{/if}
        </td>
    </tr>
    </tbody>
</table>



<form class="form-horizontal" id="form-add-news" action="{:url('Shop/docreateorder')}">

    <input type='hidden' value='{$info.id}' name='applyid' />

    <div class="form-group">
        <label class="control-label col-xs-2">
            订单价格
            <span style="color: #FF0000;">*</span>
        </label>
        <div class="col-xs-9">
            <input type="number" value="{$order_check.basicprice|default=''}" required class="form-control" name="basicprice" autocomplete="off"  min="{$proinfo.price1}" max="{$proinfo.price2}" placeholder="价格区间为{$proinfo.price1}到{$proinfo.price2}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-2">
            订单生成时间
            <span style="color: #FF0000;">*</span>
        </label>
        <div class="col-xs-9">
            <input type="text" value="{$order_check.ctime}" required class="form-control" name="ctime" autocomplete="off" placeholder="请输入银行名称">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-2">
            出售人
            <span style="color: #FF0000;">*</span>
        </label>
        <div class="col-xs-9">
            <select class="form-control" name="buyuid" id="buyuid">
                {foreach $our_user as $id=>$name}
                <option value="{$id}">{$name}</option>
                {/foreach}
            </select>
        </div>
    </div>



    <div class="form-group">
        <div class="col-xs-offset-2 col-xs-3">
            <button type="submit" class="btn btn-success btn-block">确认编辑</button>
        </div>
    </div>
</form>

<script src="__PUBLIC__/vendors/jquery.validation/jquery.validate.min.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/additional-methods.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/messages_zh.min.js"></script>
<script type="application/javascript">
    $(function () {
        $("form").validate({
            debug: false,
            submitHandler: function () {
                ajaxSubmit('form-add-news', true);
            }
        });
    })
</script>
